import { Controller, Get } from '@nestjs/common';
import { AppService } from '../providers/app.service';
import { ConfigService } from '@nestjs/config';

@Controller({
  version: "1"
})
export class AppController {
  constructor(private readonly appService: AppService, private configServer: ConfigService) { }

  @Get()
  getHello(): string {
    const envionment = this.configServer.get('SERVER').port
    return "当前环境变量端口" + envionment
    // return this.appService.getHello();
  }
}
